home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 032a / acctxt2.zip / BTRIEVE6.TXT < prev    next >
Text File  |  1993-01-10  |  4KB  |  125 lines

  1. Corrupt Error Message with Attached Btreive Table 
  2.  
  3. ---------------------------------------------------------------------
  4. The information in this article applies to:
  5.  
  6.  - Microsoft Access version 1.0
  7. ---------------------------------------------------------------------
  8.  
  9. Summary:
  10.  
  11. SYMPTOMS
  12.    When you try to attach to a Btrieve table you receive the following
  13. error message:
  14.  
  15.       <tablename> is corrupted or isn't a Microsoft Access database.
  16.  
  17. CAUSE
  18.    When Microsoft Access attaches to a Btrieve table, it compares the
  19. information in the DDF files with the information in the tablename.DAT
  20. file. The most common cause of the above error message is a difference
  21. in the information for the indexes.
  22.  
  23. RESOLUTION
  24.    The user will need to redefine these indexes in a manner that
  25. Microsoft Access will not return the above error message. The most
  26. common solution is to redefine the index to be the exact length of the
  27. field that it is based upon.
  28.  
  29. More Information:
  30.  
  31. Example #1:
  32. -----------
  33.  
  34. The tablename.DAT file is defined with three columns:
  35.  
  36.     Column name   Field Length    Index Length
  37.     ------------------------------------------
  38.     Firstname     10              <= Combined length of
  39.     Lastname      10              <= 20 characters
  40.     Company       25
  41.  
  42. Index1 is defined with a length of 20 characters which combines the
  43. firstname and lastname fields.
  44.  
  45. Resolution: This index would need to be redefined into one multiply
  46. segment index, each with a defined length of 10 characters.
  47.  
  48.  
  49. Example #2:
  50. -----------
  51.  
  52. The tablename.DAT file is defined with three columns:
  53.  
  54.     Column name   Field Length    Index Length
  55.     ------------------------------------------
  56.     Firstname     10              4 characters
  57.     Lastname      10
  58.     Company       25
  59.  
  60. Index2 is defined with a length of 4 characters which is shorter than
  61. the defined length of the firstname field.
  62.  
  63. Resolution: This index would need to be redefined from 4 characters in
  64. length to 10 characters in length, matching the size of the firstname
  65. field.
  66.  
  67.  
  68. Example #3:
  69. -----------
  70.  
  71. The tablename.DAT file is defined with three columns:
  72.  
  73.     Column name   Field Length    Index Length
  74.     ------------------------------------------
  75.     Firstname     10              12 characters
  76.     Lastname      10
  77.     Company       25
  78.  
  79. Index3 is defined with a length of 12 characters which is slightly
  80. longer than the defined length of the firstname field.
  81.  
  82. Resolution: This index would need to be redefined from 12 characters
  83. in length to 10 characters in length, matching the size of the
  84. firstname field.
  85.  
  86.  
  87. Example #4:
  88. -----------
  89.  
  90. The tablename.DAT file is defined with three columns:
  91.  
  92.     Column name   Length
  93.     --------------------
  94.     Firstname -   10
  95.     Lastname  -   10
  96.     Company   -   25
  97.  
  98. Index4 is defined on a numeric byte range and not defined on any
  99. fields in the table.
  100.  
  101. Resolution: This index would need to be removed completely and then
  102. redefined on an existing field and that has the same defined length as
  103. the field it is based upon.
  104.  
  105.  
  106. These types of indexes are valid to the Btrieve file format.  Xtrieve
  107. from Novell simply ignores this type of index.  Microsoft Access
  108. interrupts these indexes as being invalid and returns the above error
  109. message.
  110.  
  111. How does a user go about changing the index?  The user has several
  112. options:
  113.  
  114. 1. Ask the vendor that created the Btrieve files to change the indexes to
  115.    match the length of the defined fields.
  116.  
  117. 2. Redefine the indexes with Btrieve to match the length of the
  118.    defimed fields.
  119.  
  120. 3. Redefine the indexes with Xtrieve to match the length of the
  121.    defined fields.
  122.  
  123. 4. Use any third party utility that is available to modify the Btrieve
  124.    indexes.
  125.